package com.yanqu.road.logic.bussiness.activity;

import com.yanqu.road.entity.activity.tonbing.config.*;
import com.yanqu.road.entity.activity.tonbing.data.*;
import com.yanqu.road.entity.activity.tonbing.join.CrossTonBingUnionJoin;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.List;
import java.util.Map;

public class TonBingActivityBusiness {

    // ========== 配置 ==========

    public static Map<Integer, TonBingBuffTypeConfig> getTonBingBuffTypeConfigMap(int activityId) {
        return DaoHelper.getTonBingBuffTypeConfigDaoImpl().getTonBingBuffTypeConfigLMap(activityId);
    }

    public static Map<Integer,Map<Integer, TonBingCityTypeConfig>> getTonBingCityTypeConfigMap(int activityId) {
        return DaoHelper.getTonBingCityTypeConfigDaoImpl().getTonBingCityTypeConfigMap(activityId);
    }

    public static Map<Integer,Map<Integer, TonBingCityConfig>> getTonBingCityConfigMap(int activityId) {
        return DaoHelper.getTonBingCityConfigDaoImpl().getTonBingCityConfigMap(activityId);
    }

    public static Map<Integer, TonBingNpcEventConfig> getTonBingNpcEventConfigMap(int activityId) {
        return DaoHelper.getTonBingNpcEventConfigDaoImpl().getTonBingNpcEventConfigMap(activityId);
    }

    public static Map<Integer, Map<Integer, TonBingTitleConfig>> getTonBingTitleConfigMap(int activityId) {
        return DaoHelper.getTonBingTitleConfigDaoImpl().getTonBingTitleConfigMap(activityId);
    }

    // ========== 数据 ==========


    public static TonBingUserData getTonBingUserData(int activityId, long userId) {
        return DaoHelper.getTonBingUserDataDaoImpl().getTonBingUserData(activityId,userId);
    }

    public static boolean addTonBingUserData(TonBingUserData data) {
        return DaoHelper.getTonBingUserDataDaoImpl().add(data);
    }

    public static boolean updateTonBingUserData(TonBingUserData data) {
        return DaoHelper.getTonBingUserDataDaoImpl().update(data);
    }

    public static Map<Integer,CrossTonBingData> getCrossTonBingDataMap(int activityId) {
        return DaoHelper.getCrossTonBingDataDaoImpl().getCrossTonBingDataMap(activityId);
    }

    public static int getMaxMatchId(int activityId) {
        return DaoHelper.getCrossTonBingDataDaoImpl().getMaxMatchId(activityId);
    }



    public static boolean addCrossTonBingData(CrossTonBingData data) {
        return DaoHelper.getCrossTonBingDataDaoImpl().add(data);
    }

    public static boolean updateCrossTonBingData(CrossTonBingData data) {
        return DaoHelper.getCrossTonBingDataDaoImpl().update(data);
    }

    public static CrossTonBingDataMain getCrossTonBingDataMain(int activityId) {
        return DaoHelper.getCrossTonBingDataMainDaoImpl().getCrossTonBingDataMain(activityId);
    }

    public static boolean addCrossTonBingDataMain(CrossTonBingDataMain data) {
        return DaoHelper.getCrossTonBingDataMainDaoImpl().add(data);
    }

    public static boolean updateCrossTonBingDataMain(CrossTonBingDataMain data) {
        return DaoHelper.getCrossTonBingDataMainDaoImpl().update(data);
    }

    public static Map<Integer,Map<Integer, CrossTonBingCampMatchData>> getCrossTonBingCampMatchDataMap(int activityId) {
        return DaoHelper.getCrossTonBingCampMatchDataDaoImpl().getCrossTonBingCampMatchDataMap(activityId);
    }

    public static boolean addCrossTonBingCampMatchData(CrossTonBingCampMatchData data) {
        return DaoHelper.getCrossTonBingCampMatchDataDaoImpl().add(data);
    }

    public static boolean updateCrossTonBingCampMatchData(CrossTonBingCampMatchData data) {
        return DaoHelper.getCrossTonBingCampMatchDataDaoImpl().update(data);
    }

    public static Map<Integer, CrossTonBingCampData> getCrossTonBingCampDataMap(int activityId) {
        return DaoHelper.getCrossTonBingCampDataDaoImpl().getCrossTonBingCampDataMap(activityId);
    }

    public static boolean addCrossTonBingCampData(CrossTonBingCampData data) {
        return DaoHelper.getCrossTonBingCampDataDaoImpl().add(data);
    }

    public static boolean updateCrossTonBingCampData(CrossTonBingCampData data) {
        return DaoHelper.getCrossTonBingCampDataDaoImpl().update(data);
    }

    public static Map<String, CrossTonBingUnionJoin> getCrossTonBingUnionJoinMap(int activityId) {
        return DaoHelper.getCrossTonBingUnionJoinDaoImpl().getCrossTonBingUnionJoinMap(activityId);
    }

    public static boolean addCrossTonBingUnionJoin(CrossTonBingUnionJoin data) {
        return DaoHelper.getCrossTonBingUnionJoinDaoImpl().add(data);
    }

    public static boolean updateCrossTonBingUnionJoin(CrossTonBingUnionJoin data) {
        return DaoHelper.getCrossTonBingUnionJoinDaoImpl().update(data);
    }

    public static Map<Long, CrossTonBingUserData> getCrossTonBingUserDataMap(int activityId) {
        return DaoHelper.getCrossTonBingUserDataDaoImpl().getCrossTonBingUserDataMap(activityId);
    }

    public static boolean addCrossTonBingUserData(CrossTonBingUserData data) {
        return DaoHelper.getCrossTonBingUserDataDaoImpl().add(data);
    }

    public static boolean updateCrossTonBingUserData(CrossTonBingUserData data) {
        return DaoHelper.getCrossTonBingUserDataDaoImpl().update(data);
    }

    public static boolean addCityReportList(List<CrossTonBingCityWarReport> reportList){
        return DaoHelper.getCrossTonBingReportDaoImpl().addCityReportList(reportList);
    }

    public static boolean addUserReportList(List<CrossTonBingUserWarReport> reportList){
        return DaoHelper.getCrossTonBingReportDaoImpl().addUserReportList(reportList);
    }

    public static Map<Integer,List<CrossTonBingCityWarReport>> getCityReportListMap(int activityId){
        return DaoHelper.getCrossTonBingReportDaoImpl().getCityReportListMap(activityId);
    }

    public static Map<Integer,List<CrossTonBingCityWarReport>> getCityReportMap(int activityId){
        return DaoHelper.getCrossTonBingReportDaoImpl().getCityReportMap(activityId);
    }

    public static Map<Integer,List<CrossTonBingUserWarReport>> getUserReportListMap(int activityId){
        return DaoHelper.getCrossTonBingReportDaoImpl().getUserReportListMap(activityId);
    }

}
